package com.xinghou.platform.lucene.main;

import com.xinghou.platform.model.main.SearchPolymerization;
import com.xinghou.platform.model.main.Store;
import com.xinghou.platform.model.main.StoreQueryParam;

import java.io.IOException;
import java.util.List;

/**
 * 门店信息检索
 * @author xuzhen
 *
 */
public interface StoreLuceneService {

	/**
	 * 门店信息检索 关键字 key 页数 fromno 每页条数 pagesize 用户类型 usertype  
	 * @param key
	 * @param fromno
	 * @param pagesize
	 * @return
	 * @throws IOException
	 */
	public List<Store> getSearchStoreInfos(Boolean share,String key, int fromno, int pagesize, String City_id,double distinct, double lon, double lat) ;

	public List<SearchPolymerization> getSearchPolymerization(Boolean share,String key, double distinct, double lon, double lat,double level, String userType, String citycode) ;


	public List<Store> getSearchStoreInfos(String key, int fromno, int pagesize) throws IOException;

	public List<Store> queryStoreByParams(StoreQueryParam param,int fromno,int pagesize,double distinct ,double lon,double lat);

	
	public int saveStore(Store store);
	
	public int updateStore(Store store);
	public boolean isExit(String Store_id) throws Exception;
	

}
